import React from "react";
import { useAuth } from "../context/auth-context";

const List = () => {
  const context = useAuth();
  console.log(context);
  return (
    <ul>
      {"AppProvider传递过来的" + context.name}
      {Array(10)
        .fill("a")
        .map((v, index) => (
          <li key={index}>{index + 1}</li>
        ))}
    </ul>
  );
};

export default List;
